package cn.yitun.chat.yitunserverimcore.general.common.service.common.impl;

import cn.yitun.chat.yitunservercommonlib.crud.yitun.CrudServiceImpl;
import cn.yitun.chat.yitunservercommonlib.dataentity.dto.common.SyslogDto;
import cn.yitun.chat.yitunservercommonlib.dataentity.po.common.Syslog;
import cn.yitun.chat.yitunservercommonlib.dataentity.vo.common.SyslogVo;
import cn.yitun.chat.yitunserverimbase.dao.common.LogDao;
import cn.yitun.chat.yitunserverimcore.general.common.service.common.LogService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


@Service
public class LogServiceImpl
		extends CrudServiceImpl<LogDao, SyslogDto, Syslog, SyslogVo>
		implements LogService {

	@Override
    @Transactional
	public int save(SyslogDto log){
		return dao.save(log);
	}
	
	@Override
    @Transactional
	public int update(SyslogDto log){
		return dao.update(log);
	}
	

	@Override
    @Transactional
	public int absDel(Long id){
		return dao.absDel(id);
	}

	@Override
    @Transactional
	public int batchAbsDel(Long[] ids){
		return dao.batchAbsDel(ids);
	}
}
